-- GENERATED SPELL FOR [General Gorlok] --


function spell0_27708(pUnit, Event) --@Berserker Charge,n/a--
pUnit:FullCastSpellOnTarget(52460,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27708', 552, 1)
end

function spell1_27708(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27708', 5319, 1)
end

function Sorts_27708(pUnit, Event)
local choix_sorts_27708 = math.random(0, 1)
if choix_sorts_27708 == 0 then
pUnit:RegisterEvent('spell0_27708', 1, 1)
end
if choix_sorts_27708 == 1 then
pUnit:RegisterEvent('spell1_27708', 1, 1)
end
end

function mob27708_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27708', math.random(1500, 3000), 1)
end

function mob27708_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27708_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27708_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27708, 1, 'mob27708_Action')
RegisterUnitEvent(27708, 2, 'mob27708_Leave')
RegisterUnitEvent(27708, 3, 'mob27708_Kill')
RegisterUnitEvent(27708, 4, 'mob27708_Die')
